package com.qf.ym.entity;

import java.util.Arrays;

public class AdminEntity {

    private int aid;
    private String aname; //昵称
    private String  aacount; //账户
    private String  apass; //密码
    private int  astatus=-1; //状态
    private String  aphone; //手机
    private int pageNum=1;//默认显示第一页
    private int pageSize=5;//默认一页是五条记录
    private String[] roles;


    public String[] getRoles() {
        return roles;
    }

    public void setRoles(String[] roles) {
        this.roles = roles;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getAid() {
        return aid;
    }

    public void setAid(int aid) {
        this.aid = aid;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public String getAacount() {
        return aacount;
    }

    public void setAacount(String aacount) {
        this.aacount = aacount;
    }

    public String getApass() {
        return apass;
    }

    public void setApass(String apass) {
        this.apass = apass;
    }

    public int getAstatus() {
        return astatus;
    }

    public void setAstatus(int astatus) {
        this.astatus = astatus;
    }

    public String getAphone() {
        return aphone;
    }

    public void setAphone(String aphone) {
        this.aphone = aphone;
    }

    @Override
    public String toString() {
        return "AdminEntity{" +
                "aid=" + aid +
                ", aname='" + aname + '\'' +
                ", aacount='" + aacount + '\'' +
                ", apass='" + apass + '\'' +
                ", astatus=" + astatus +
                ", aphone='" + aphone + '\'' +
                ", pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", roles=" + Arrays.toString(roles) +
                '}';
    }
}
